<h1>Administracija Recepata</h1>
<?= $this->Html->link("+ Kreiraj recept", "/admin_receipes/create") ?>

<table>
	<tr>
		<th>Naziv</th>
		<th width="1%"></th>
	</tr>
	<? foreach($receipes as $receipe): ?>
	<tr>
		<td><?= $this->Html->link($receipe['Receipe']['title'], '/admin_receipes/edit/'.$receipe['Receipe']['id']) ?></td>
		<td>
			<?= $this->Html->link('obriši', '/admin_receipes/delete/' . $receipe['Receipe']['id'], array("onclick"=>"return confirm('Da li želite da obrišete recept?')")) ?>
		</td>
	</tr>
	<? endforeach; ?>
</table>
<?= $this->element('pagination') ?>
